package coms.dto;

import java.io.Serializable;

public class Profile implements Serializable{
    
    private int id;
    private String alternateEmail;
    private String salutation;
    private String firstName;
    private boolean gender;
    private String lastName;
    private String mobileNumber;
    private String officeNumber;
    private String address1;
    private String address2;
    private String address3;
    private String city;
    private String country;
    private String postalCode;
    private String website;
    private String blog;

    public Profile(){

    }

    public String getAlternateEmail() {
        return alternateEmail;
    }

    public void setAlternateEmail(String alternateEmail) {
        this.alternateEmail = alternateEmail;
    }

    public String getBlog() {
        return blog;
    }

    public void setBlog(String blog) {
        this.blog = blog;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    
    public String getGenderStr() {
        return gender?"Male":"Female";
    }
    
    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getMobileNumber() {
        return mobileNumber;
    }

    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }

    public String getOfficeNumber() {
        return officeNumber;
    }

    public void setOfficeNumber(String officeNumber) {
        this.officeNumber = officeNumber;
    }

    public String getPostalCode() {
        return postalCode;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    public String getSalutation() {
        return salutation;
    }

    public void setSalutation(String salutation) {
        this.salutation = salutation;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }
    
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAddress1() {
        return address1;
    }

    public void setAddress1(String address1) {
        this.address1 = address1;
    }

    public String getAddress2() {
        return address2;
    }

    public void setAddress2(String address2) {
        this.address2 = address2;
    }

    public String getAddress3() {
        return address3;
    }

    public void setAddress3(String address3) {
        this.address3 = address3;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }
    
  
    public String getAddress()
    {
       String address="";
     
       if(!getAddress1().equals(""))
       {
           address+=getAddress1()+"\n";
       }
       if(!getAddress2().equals(""))
       {
           address+=getAddress2()+"\n";
       }
       if(!getAddress3().equals(""))
       {
           address+=getAddress3()+"\n";
       }
       if(!getCity().equals(""))
       {
           address+=getCity()+",";
       }
       if(!getCountry().equals(""))
       {
           address+=getCountry();
       }
       if(!getPostalCode().equals(""))
       {
           address+="-"+getPostalCode();
       }
       return address;
    }
}